package com.wanghua.mall.auth.openfeign;

import com.wanghua.common.utils.R;
import com.wanghua.mall.auth.vo.LoginVo;
import com.wanghua.mall.auth.vo.RegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wanghua
 * @create 2021-09-05 19:22
 */
@FeignClient("mall-user")
public interface UserClient {
    /**
     * 用户注册
     */
    @PostMapping("/user/user/register")
    R register(@RequestBody RegisterVo register);

    /**
     * 用户登录
     */
    @PostMapping("/user/user/login")
    R login(@RequestBody LoginVo loginVo);

    /**
     * 第三方账号登录->>Gitee
     */
    @PostMapping("/user/user/giteeLogin")
    R giteeLogin(@RequestBody String giteeUserVoJson);
}
